package dk.eclipse.android.badassapp.helper;

import android.content.Context;
import android.text.ClipboardManager;

public class ClipboardHelper {

	public static String getText(Context context) {
		ClipboardManager clipboard = 
		      (ClipboardManager) context.getSystemService(context.CLIPBOARD_SERVICE); 
		 return (String) clipboard.getText();
	}
	public static void setText(Context context, String value) {
		ClipboardManager clipboard = 
			(ClipboardManager) context.getSystemService(context.CLIPBOARD_SERVICE); 
		clipboard.setText(value);
	}
}
